package io.gitee.devaper.starlight.security

import io.gitee.devaper.starlight.common.entity.vo.*
import io.gitee.devaper.starlight.common.util.*
import org.springframework.security.web.session.*
import org.springframework.stereotype.Component

@Component
open class DefaultSessionInformationExpiredStrategy : SessionInformationExpiredStrategy {
    override fun onExpiredSessionDetected(event: SessionInformationExpiredEvent) {
        event.response.write(data = ApiResult.unauthenticated(), request = event.request)
    }
}